-- GENERATED SPELL FOR [Amani'shi Savage] --


function spell0_23889(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23889', 10269, 1)
end

function spell1_23889(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(12054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23889', 15000, 1)
end

function spell2_23889(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23889', 30299, 1)
end

function Sorts_23889(pUnit, Event)
local choix_sorts_23889 = math.random(0, 2)
if choix_sorts_23889 == 0 then
pUnit:RegisterEvent('spell0_23889', 1, 1)
end
if choix_sorts_23889 == 1 then
pUnit:RegisterEvent('spell1_23889', 1, 1)
end
if choix_sorts_23889 == 2 then
pUnit:RegisterEvent('spell2_23889', 1, 1)
end
end

function mob23889_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23889', math.random(1500, 3000), 1)
end

function mob23889_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23889_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23889_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23889, 1, 'mob23889_Action')
RegisterUnitEvent(23889, 2, 'mob23889_Leave')
RegisterUnitEvent(23889, 3, 'mob23889_Kill')
RegisterUnitEvent(23889, 4, 'mob23889_Die')
